<template>
 <van-nav-bar
 :fixed="true"
    class="list_top"
  title="商品列表"
  left-text="返回"
  right-text="购物车"
  left-arrow
  @click-left="onClickLeft"
  @click-right="onClickRight"
/>
</template>
 
<script>
 
export default {
    name:"listTop",
   data() {
      return {
      }
   },
     methods: {
    onClickLeft() {
      this.$router.go(-1)
    },
    onClickRight() {
      this.$router.push('/')
    }
  }
}
 
</script>
 
<style lang="stylus" scoped>
 >>>.van-nav-bar__text
    color #333
>>>.van-icon
    color #333
</style>
